3.191 \(\int x^{-1+n} (a+b \log (c x^n))^p \, dx\)

Optimal. Leaf size=65 \[ \frac{e^{-\frac{a}{b}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{a+b \log \left (c x^n\right )}{b}\right )^{-p} \text{Gamma}\left (p+1,-\frac{a+b \log \left (c x^n\right )}{b}\right )}{c n} \]

[Out]

(Gamma[1 + p, -((a + b*Log[c*x^n])/b)]*(a + b*Log[c*x^n])^p)/(c*E^(a/b)*n*(-((a + b*Log[c*x^n])/b))^p)

________________________________________________________________________________________

Rubi [A]  time = 0.0512487, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2310, 2181} \[ \frac{e^{-\frac{a}{b}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{a+b \log \left (c x^n\right )}{b}\right )^{-p} \text{Gamma}\left (p+1,-\frac{a+b \log \left (c x^n\right )}{b}\right )}{c n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n)*(a + b*Log[c*x^n])^p,x]

[Out]

(Gamma[1 + p, -((a + b*Log[c*x^n])/b)]*(a + b*Log[c*x^n])^p)/(c*E^(a/b)*n*(-((a + b*Log[c*x^n])/b))^p)

Rule 2310

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)*x)/n)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rubi steps

\begin{align*} \int x^{-1+n} \left (a+b \log \left (c x^n\right )\right )^p \, dx &=\frac{\operatorname{Subst}\left (\int e^x (a+b x)^p \, dx,x,\log \left (c x^n\right )\right )}{c n}\\ &=\frac{e^{-\frac{a}{b}} \Gamma \left (1+p,-\frac{a+b \log \left (c x^n\right )}{b}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{a+b \log \left (c x^n\right )}{b}\right )^{-p}}{c n}\\ \end{align*}

Mathematica [A]  time = 0.0236361, size = 65, normalized size = 1. \[ \frac{e^{-\frac{a}{b}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{a+b \log \left (c x^n\right )}{b}\right )^{-p} \text{Gamma}\left (p+1,-\frac{a+b \log \left (c x^n\right )}{b}\right )}{c n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n)*(a + b*Log[c*x^n])^p,x]

[Out]

(Gamma[1 + p, -((a + b*Log[c*x^n])/b)]*(a + b*Log[c*x^n])^p)/(c*E^(a/b)*n*(-((a + b*Log[c*x^n])/b))^p)

________________________________________________________________________________________

Maple [F]  time = 1.768, size = 0, normalized size = 0. \begin{align*} \int{x}^{-1+n} \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) ^{p}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+n)*(a+b*ln(c*x^n))^p,x)

[Out]

int(x^(-1+n)*(a+b*ln(c*x^n))^p,x)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*(a+b*log(c*x^n))^p,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b \log \left (c x^{n}\right ) + a\right )}^{p} x^{n - 1}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*(a+b*log(c*x^n))^p,x, algorithm="fricas")

[Out]

integral((b*log(c*x^n) + a)^p*x^(n - 1), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n)*(a+b*ln(c*x**n))**p,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \log \left (c x^{n}\right ) + a\right )}^{p} x^{n - 1}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*(a+b*log(c*x^n))^p,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^p*x^(n - 1), x)